package com.adjaisd.scarecrow.service;

import com.adjaisd.scarecrow.entity.DeviceGps;
import com.adjaisd.scarecrow.vo.DeviceGpsVO;
import com.adjaisd.scarecrow.vo.GeoCoordinate;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author adjaisd
 * @since 2022-03-22
 */
public interface DeviceGpsService extends IService<DeviceGps> {

    DeviceGps getDeviceGps(Long number);

    Boolean updateDeviceGPS(DeviceGps deviceGps);

    DeviceGps analysis(String topic, Map<String, Object> payloadMap);

    DeviceGpsVO getAllDeviceGps(Long userId);

    GeoCoordinate getRandomLocation(Long number);

}
